package sphere.model;

public class Sphere {

	private double rayon;
	private double surface;
	private double volume;
	
	private static final double pi=Math.PI;

	public Sphere(double rayon) {
		super();
		this.rayon = rayon;
		this.surface = calculSurface();
		this.volume = calculVolume();
	}
	
	public double getRayon() {
		return rayon;
	}

	public void setRayon(double rayon) {
		this.rayon = rayon;
	}

	public double getSurface() {
		return surface;
	}

	public void setSurface(double surface) {
		this.surface = surface;
	}

	public double getVolume() {
		return volume;
	}

	public void setVolume(double volume) {
		this.volume = volume;
	}

	public static double getPi() {
		return pi;
	}
	
	public double calculSurface() {
		 double calcul=(4*pi*Math.pow(this.rayon, 2));
		 return calcul;
	}
	
	public double calculVolume() {
		double calcul=(4*pi*Math.pow(this.rayon, 3))/3;
		return calcul;
	}
	
}
